package com.wwg;

import java.nio.ByteBuffer;

/**
 * @author: wwg
 * @date: 2022/2/24 11:22
 */

public class TestDirectByteBuffer {


    public static void main(String[] args) {
        //分配堆内存
        ByteBuffer byteBuffer = ByteBuffer.allocate(100);
        //分配直接内存
        ByteBuffer byteBufferDirect = ByteBuffer.allocateDirect(100);
    }
}
